//
//  UIViewController+KeyboardObserver.h
//  nav
//
//  Created by wjxfhxy on 15/8/11.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (KeyboardObserver)

@property(nonatomic,assign) CGFloat keyboardOffSet;

- (BOOL)keyboardWillShow:(NSNotification *)noti;

- (BOOL)keyboardDidShow:(NSNotification *)noti;

- (BOOL)keyboardWillHide:(NSNotification *)noti;

- (void)keyboardWillChangeSize:(CGFloat)changeSize withAnimationDuration:(CGFloat)duration curve:(UIViewAnimationCurve)curve;

- (void)addKeyboardObserver;

- (void)removeKeyboardObserver;

+ (void)closeKeyBoard;

@end
